#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

class Point;
class Line;

class Point
{
private:
    double x, y;

public:
    Point(double a, double b)
    {
        x = a;
        y = b;
    }
    friend double dist(Point &p, Line &l);
};

class Line
{
private:
    double a, b, c;

public:
    Line(double x, double y, double z)
    {
        a = x;
        b = y;
        c = z;
    }
    friend double dist(Point &p, Line &l);
};

double dist(Point &p, Line &l)
{
    double d;
    d = fabs((l.a * p.x + l.b * p.y + l.c) / sqrtf(l.a * l.a + l.b * l.b));
    return d;
}

int main()
{
    double x, y, a, b, c;
    cin >> x >> y >> a >> b >> c;
    Point p(x, y);
    Line l(a, b, c);
    if (dist(p, l) == 0)
        cout << "The distance is: 0" << endl;
    else
        cout << fixed << setprecision(2)
             << "The distance is: " << dist(p, l) << endl;

    return 0;
}